package com.gccloud.design.entity;

import com.baomidou.mybatisplus.annotation.IdType;
import com.baomidou.mybatisplus.annotation.TableId;
import com.baomidou.mybatisplus.annotation.TableName;
import com.fasterxml.jackson.databind.annotation.JsonSerialize;
import com.fasterxml.jackson.databind.ser.std.ToStringSerializer;
import io.swagger.annotations.ApiModel;
import io.swagger.annotations.ApiModelProperty;
import lombok.Data;
import lombok.experimental.Accessors;

import java.io.Serializable;

/**
 * @author guo.wang
 * @date 2021-07-22
 */
@Data
@ApiModel("工位业务场景权限表")
@TableName("uc_station_busi_order")
@Accessors(chain = true)
public class UcStationBusiOrderEntity implements Serializable {

    private static final long serialVersionUID = 1L;

    /**
     * 主键
     */
    @TableId(type = IdType.AUTO)
    @ApiModelProperty("主键")
    private Long id;

    /**
     * 表单标识
     */
    @ApiModelProperty("表单标识")
    private Long formId;

    /**
     * 表单编码
     */
    @ApiModelProperty("表单编码")
    private String formCode;

    /**
     * 表单名称
     */
    @ApiModelProperty("表单名称")
    private String formName;

    /**
     * 工位id
     */
    @ApiModelProperty("工位id")
    @JsonSerialize(using = ToStringSerializer.class)
    private Long stationId;

    /**
     * 工位名称
     */
    @ApiModelProperty("工位名称")
    private String stationName;

    /**
     * 工位类型
     */
    @ApiModelProperty("工位类型")
    private String stationType;

    /**
     * 分片标识
     */
    @ApiModelProperty("分片标识")
    private Integer shardingId;

}
